﻿#include "CPolItemSensor.h"

CPolItemSensor::CPolItemSensor()
{
	m_nDevType = 0;
	m_nCheckType = 0;
	m_nCollectIndex = 0;
}

CPolItemSensor::~CPolItemSensor()
{
}

void CPolItemSensor::copyData(CPolItem *pPolItem)
{
	if (nullptr == pPolItem)
	{
		return;
	}
		
	CPolItemSensor* pPolItemSensor = (CPolItemSensor*)pPolItem;
	//将基类中的数据进行拷贝
	pPolItemSensor->m_sItemGuid = m_sItemGuid;
	pPolItemSensor->m_sItemName = m_sItemName;
	pPolItemSensor->m_sPointGuid = m_sPointGuid;
	pPolItemSensor->m_sGuid = m_sGuid;
	pPolItemSensor->m_nDevType = m_nDevType;
	pPolItemSensor->m_nDevTypeCode = m_nDevTypeCode;
	pPolItemSensor->m_nDataType = m_nDataType;
	pPolItemSensor->m_dItemZ = m_dItemZ;
	pPolItemSensor->m_nIndex = m_nIndex;
	pPolItemSensor->m_nAlarmLevel = m_nAlarmLevel;
	pPolItemSensor->m_sDataThreadHoldHH = m_sDataThreadHoldHH;
	pPolItemSensor->m_sDataThreadHoldLL = m_sDataThreadHoldLL;
	pPolItemSensor->m_sDataThreadHoldH = m_sDataThreadHoldH;
	pPolItemSensor->m_sDataThreadHoldL = m_sDataThreadHoldL;
	pPolItemSensor->m_nItemStatus = m_nItemStatus;
	pPolItemSensor->m_nBelong = m_nBelong;
	pPolItemSensor->m_nCheckType = m_nCheckType;
	pPolItemSensor->m_nCollectIndex = m_nCollectIndex;
	pPolItemSensor->m_nCollectCheckType = m_nCollectCheckType;
	pPolItemSensor->m_dCollectInterval = m_dCollectInterval;
	pPolItemSensor->m_nCollectRollerNum = m_nCollectRollerNum;
}

